package com.imooc.controller;

import com.imooc.grace.result.GraceJSONResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
@Api(tags = "hello测试的接口")
public class HelloController {
    @GetMapping("/hello")
    @ApiOperation(value = "hello接口")
    public GraceJSONResult hello(){
        return GraceJSONResult.ok("ok");
    }
}
